import { Global, Module } from "@nestjs/common";
import { CatsController } from './cats.controller';
import { CatsService } from './cats.service';

@Global() // 全局模块，可被全局使用
@Module({
  controllers: [CatsController],
  providers: [CatsService],
  exports: [CatsService],
})
export class CatsModule {
  constructor(private catsService: CatsService) {}
}
